package com.distributeredis.redis_springboot.springapachehttpclienthttpconnectionresttemplate.resttemplate.controller;

import com.distributeredis.redis_springboot.springapachehttpclienthttpconnectionresttemplate.resttemplate.vo.User;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/getpost")
public class TestGetPost {

    @GetMapping("/get")
    public User getUserData(User user) {
        System.out.println(user);
        return user;
    }

    @PostMapping("/post")
    public User getPostUserData(@RequestBody User user) {
        System.out.println(user);
        return user;
    }
}
